package com.front.teacher.teacherapp.view.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Handler;

import com.front.teacher.teacherapp.R;
import com.front.teacher.teacherapp.base.BaseActivity;
import com.front.teacher.teacherapp.view.activity.login.LoginActivity;

public class FirstActivity extends BaseActivity {
    private Context mContext = this;

    @Override
    public void initView() {
        new Handler().postDelayed(new Runnable() {
            @Override public void run() {
                if (!FirstActivity.this.isFinishing()) {
                    Intent intent = new Intent(mContext,LoginActivity.class);//2秒之后跳转到主界面执行
                    startActivity(intent);
                    FirstActivity.this.finish();
                }
            }
        }, 3000);
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_first;
    }

}
